﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
using System.Net.Mail;

namespace MIT.CommonMenu
{
    public partial class Contact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

       /* protected void ButtonConSubmit_Click1(object sender, EventArgs e)
        {
            if (Page.IsValid)

                try
                {
                    MailMessage mm = new MailMessage(TextBoxConEmail.Text, "cms.mit2015@gmail.com");
                    mm.Subject = "Contact Us - " + TextBoxConName.Text;

                    mm.Body = TextBoxConSubject.Text;

                    mm.IsBodyHtml = true;

                    SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);
                    smtpClient.EnableSsl = true;
                    smtpClient.Credentials = new System.Net.NetworkCredential()
                    {
                        UserName = "cms.mit2015@gmail.com",
                        Password = "millenium2015"
                    };
                    smtpClient.Send(mm);


                }

                catch (Exception ex)
                {
                    Response.Write("Could not send the e-mail - error: " + ex.Message);
                }



        }*/
    }
}